package interfaces.inputValidation;

import fileHandling.language.LanguageLoader;
import fileHandling.language.interfaces.Validation;
import settings.ControlSettings;

public class KeyInputChecker implements InputChecker {
	
	public KeyInputChecker() {}
	
	@Override
	public boolean isValid(String input) {
		int k = ControlSettings.get().getKey(input);
		return k != -1;
	}
	
	@Override
	public String getDescription() {
		return LanguageLoader.get(Validation.NotValidKey);
	}
}